package chat

import (
	"gitee.com/saxon134/go-utils/saOrm"
	"gitee.com/saxon134/workflow/enum"
)

const TBNChat = "chat"

type TblChat struct {
	Id           int64       `json:"id"`
	CreateAt     *saOrm.Time `json:"createAt"`
	Creator      int64       `json:"creator"`  //创建人
	DemandId     int64       `json:"demandId"` //需求ID
	Content      string      `json:"content"`
	DemandStatus int         `json:"demandStatus"` //需求状态
	Status       enum.Status `json:"status"`
	Level        int         `json:"level"` //1-一般 2-重要
}

func (m *TblChat) TableName() string {
	return TBNChat
}
